import { StartDate } from '../hooks/useStartDate';
import { ProjectConfig } from '../types/config';
import type { IntentionData, State, UserInfo } from '/@/types';

export const loginStatus = (state: State): number => state.loginStatus;

export const accessToken = (state: State): string | undefined => state.accessToken;

export const userInfo = (state: State): UserInfo => state.userInfo;

export const projectSetting = (state: State): ProjectConfig => state.projectSetting;

export const code = (state: State): string => state.code;

export const scopeNumber = (state: State): number => state.scopeNumber;

export const startDate = (state: State): StartDate => state.startDate as StartDate;

export const intention = (state: State): IntentionData => state.intention as IntentionData;

export const myIntention = (state: State): string => state.myIntention as string;
